export default {
    data() {
        return {
            dialogFormVisible: false,
            type: 'add',
            id: '',
        }
    },
    methods: {
        add() {
            this.id = ''
            this.type = 'add'
            this.dialogFormVisible = true
        },
        edit(id) {
            this.id = id
            this.type = 'edit'
            this.dialogFormVisible = true
        },
        handleDone() {
            this.dialogFormVisible = false;
            this.getList();
        }
    }
}